﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace SistemaDeBastanteodePoderes.Dominio
{
    public class Usuario
    {
        public int Codigo { get; set; }
        [Required(ErrorMessage = "El nombre es obligatorio")]
        public string Nombre { get; set; }
        [StringLength(8, ErrorMessage="Considere caracteres alfanumericos maximo 8")]
        public string Password { get; set; }
        public Roles Rol { get; set; }
       

    }
}